#!/bin/bash

host=localhost
port=4711


echo open $host $port
sleep 0.02
echo ehlo nattl.at
sleep 0.02
echo noop
sleep 0.02
echo mail from: hoax@otago.ac.nz
sleep 0.02
echo rcpt to: rampftl@gmx.net
sleep 0.02
echo RSET
sleep 0.02
echo mail from: nattl@nattl.at
sleep 0.02
echo rcpt to: nat@cs.otago.ac.nz
sleep 0.02
echo data
sleep 0.02
echo subject: blub blubber
sleep 0.02
echo this is some text
sleep 0.02
echo this is another line
sleep 0.02
echo
sleep 0.02
echo bye
sleep 0.02
echo Nat
sleep 0.02
echo .
sleep 0.02
echo quit
sleep 0.5